<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>EHS群组文章-EHS中国-</title>
    <link href="__TMPL__/style/group-style.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
    <style type="text/css">
    	table { border-top:solid 1px #ccc;}
		td { line-height:30px; border-bottom:solid 1px #ccc;}
		.title { text-align:left; padding-left:5px; }
		.title span { color:#f00; }
    </style>
  </head>
  <body>
    <layout name="Public:header0523" cache="1" />
    <div class="main">
    <layout name="Public:group-member-base" cache="0" />
    <div class="content" style="" >
      <div class="content_left" style=" width:690px;">
        <layout name="Public:circle-group-header" cache="0" />

        <div class="content_right_border">
          <div style="line-height:30px;">群组文章列表<span style="float:right">{$page}</span></div>
          <form action="" id="frm" method="post">
            <table width="675" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr><td width="25px">&nbsp;</td><td width="30px">序号</td><td>标题</td><td>作者</td><td width="150px">发表时间</td></tr>
              <volist name="list" id="vo">
                <tr>
                  <td><input type="checkbox" aid="{$vo.id}" name="ids[]" value="{$vo.id}"/></td>
                  <td>{$i}</td>
                  <td class="title">{$vo.title}<if condition="$vo.top eq 1"><span>[置顶]</span></if><if condition="$vo.excellent eq 1"><span>[精华]</span></if></td>
                  <td>{$vo.username}</td>
                  <td>{$vo.create_time}</td>
                </tr>
              </volist>
            </table>
            <input id="htype"name="type" type="hidden" value=""/>
          </form>
          <div style="line-height:30px; margin-top:10px;">
            <input type="button" value="置顶" onclick="operate(1)"/>
            <input type="button" value="取消置顶" onclick="operate(2)"/>
            <input type="button" value="精华" onclick="operate(3)"/>
            <input type="button" value="取消精华" onclick="operate(4)"/>
            <input type="button" value="删除" onclick="operate(5)"/>
            <span style="float:right;">{$page}</span>
          </div>
        </div>
      </div><!--end left column-->
      <div class="content_right">
        <layout name="Public:group-right" cache="0" />
      </div>
	  <div class="clear"></div>
      
	  </div>  <!--end content-->
	    
      <div class="footer" style="clear:both"><layout name="Public:footer" cache="0" /></div>
      </div>
 </body>
    <script>
      var url = "__URL__"+"/articleOperate";
      function checkFrom(id){
        var count = 0;
        $("#frm").find("input[type=checkbox]").each(function(){
          if ($(this).attr("checked")) count++;
        });
        if (count == 0) alert("请选择记录");
        return count;
      }
      function operate(type){
        if (checkFrom()){
          $("#htype").val(type);
          $("#frm").attr("action",url).submit();
        }
      }
    </script>
 
</html>
